Skip to content

Commit

Permalink
fix 버그수정
Browse files Browse the repository at this point in the history
  • Loading branch information
enebin committed Aug 21, 2023
1 parent eabeaf2 commit 0f090a9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public struct KeymeTestsStartFeature: Reducer {
public var keymeTests: KeymeTestsFeature.State?
public var isAnimating: Bool = false
public var nickname: String?
public var testId: Int = 5 // TODO: change
public var testId: Int = 18 // TODO: change
public var icon: IconModel = .EMPTY

public init() { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public struct KeymeCardView: View {
Spacer()
.frame(height: 8)

Text.keyme("\(testResult.nickname)애정표현 정도는?", font: .heading1)
Text.keyme("\(testResult.nickname)\(testResult.title) 정도는?", font: .heading1)
.foregroundColor(.white)
.multilineTextAlignment(.leading)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public struct TestResultView: View {
.onTapGesture {
Task {
// TODO: url 주석단거로 바꾸기
// let url = "https://keyme-frontend.vercel.app/test/\(viewStore.testId)"
let url = "https://keyme-frontend.vercel.app/test/5"
let url = "https://keyme-frontend.vercel.app/test/\(17)"
// let url = "https://keyme-frontend.vercel.app/test/5"
let shortURL = try await ShortUrlAPIManager.shared.request(
.shortenURL(longURL: url),
object: BitlyResponse.self).link
Expand Down
12 changes: 5 additions & 7 deletions Projects/Features/Sources/MyPage/ScoreList/ScoreListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ struct ScoreListFeature: Reducer {
switch action {
case .loadScores:
return .run { send in
print("ACTION!")
try await Task.sleep(until: .now + .seconds(0.5), clock: .continuous)
await send(.saveScores(
totalCount: 3,
scores: [
CharacterScore(score: Int.random(in: 1...5), date: Date()),
CharacterScore(score: Int.random(in: 1...5), date: Date().addingTimeInterval(-70)),
CharacterScore(score: Int.random(in: 1...5), date: Date().addingTimeInterval(-297))
]
totalCount: 42,
scores: (0..<42).map { i in
let randomInterval = TimeInterval(-2 * i)
return CharacterScore(score: Int.random(in: 1...5), date: Date().addingTimeInterval(randomInterval + Double(Int.random(in: 0...1))))
}
))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public struct OnboardingFeature: Reducer {
public var testResultState: TestResultFeature.State?
public var status: Status = .notDetermined

public var testId: Int = 4 // TODO: 바꾸기
public var testId: Int = 17 // TODO: 바꾸기
public var lottieType: LottieType = .splash1
public var isButtonShown: Bool = false
public var isLoop: Bool = false
Expand Down
4 changes: 2 additions & 2 deletions Projects/Network/Sources/Network/API/KeymeTestsAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension KeymeTestsAPI: BaseAPI {
"code": 200,
"message": "요청에 성공했습니다.",
"data": {
"testId": 4,
"testId": 17,
"testResultId": null,
"solvedCount": 0,
"title": "님은 돈관리를 잘한다",
Expand Down Expand Up @@ -116,7 +116,7 @@ extension KeymeTestsAPI: BaseAPI {
"message": "요청에 성공했습니다.",
"data": {
"testResultId": 391,
"testId": 4,
"testId": 17,
"matchRate": 0.0,
"results": [
{
Expand Down

0 comments on commit 0f090a9

Please sign in to comment.