Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 状態の重複が発生しないようにする (chair status更新前に状態をチェック後に実施) #789

Merged
merged 2 commits into from
Dec 7, 2024

Conversation

imamiya-masaki
Copy link
Contributor

No description provided.

return JSON.parse(data) as T;
}

const notificationFetch = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nits) internalな関数なのでgetCurrentRideStatus にして、以下を中で実行しても良さそうに思います

const getStatus = async () => {
  const notification = await notificationFetch();
  return notification?.data?.status;
};

Copy link
Contributor

@narirou narirou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

処理は問題なさそうなのでApproveしておきます

@imamiya-masaki
Copy link
Contributor Author

一旦こちらはマージします

@imamiya-masaki imamiya-masaki merged commit d089671 into main Dec 7, 2024
2 checks passed
@imamiya-masaki imamiya-masaki deleted the cherry-pick-fe branch December 7, 2024 14:55
@narirou narirou changed the title [fe] cherry-pick [FE] 状態の重複が発生しないようにする (chair status更新前に状態をチェック後に実施) Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants