feat(client): profile improvements
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { postAuthExchangeMutation } from "@/client/@tanstack/react-query.gen";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { toast } from "sonner";
|
||||
import { useMutation } from '@tanstack/react-query';
|
||||
import { toast } from 'sonner';
|
||||
import { postAuthExchangeMutation } from '@/client/@tanstack/react-query.gen';
|
||||
|
||||
export function useExchangeToken() {
|
||||
return useMutation({
|
||||
@@ -10,7 +10,7 @@ export function useExchangeToken() {
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
toast("An error occurred while exchanging the token. Please login manually.");
|
||||
}
|
||||
})
|
||||
toast('An error occurred while exchanging the token. Please login manually.');
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user