Skip to content

Commit

Permalink
feat: when sending a token, let the page move without waiting for the…
Browse files Browse the repository at this point in the history
… result
  • Loading branch information
jinoosss committed Nov 5, 2024
1 parent cf0fbf0 commit 06fa67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ const NFTTransferSummaryContainer: React.FC = () => {

const transferByCommon = useCallback(async () => {
try {
const result = await createTransaction();
if (result) {
navigate(RoutePath.History);
}
createTransaction();
navigate(RoutePath.History);
} catch (e) {
if (!(e instanceof Error)) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,8 @@ const TransferSummaryContainer: React.FC = () => {

const transferByCommon = useCallback(async () => {
try {
const result = await createTransaction();
if (result) {
navigate(RoutePath.History);
}
createTransaction();
navigate(RoutePath.History);
} catch (e) {
if (!(e instanceof Error)) {
return false;
Expand Down

0 comments on commit 06fa67e

Please sign in to comment.