mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 00:06:09 +08:00
feat(core): support signup set password before goto stripe payment url (#4892)
This commit is contained in:
@@ -80,11 +80,11 @@ export const AuthPage = (): ReactElement | null => {
|
||||
);
|
||||
|
||||
const onSetPassword = useCallback(
|
||||
(password: string) => {
|
||||
changePassword({
|
||||
async (password: string) => {
|
||||
await changePassword({
|
||||
token: searchParams.get('token') || '',
|
||||
newPassword: password,
|
||||
}).catch(console.error);
|
||||
});
|
||||
},
|
||||
[changePassword, searchParams]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user