Skip to content

Commit

Permalink
Merge pull request #979 from Koniverse/issue-977
Browse files Browse the repository at this point in the history
[issue-977] Update web runner 1.1.9
  • Loading branch information
nguyenduythuc authored Aug 25, 2023
2 parents 7d3460b + 8056d74 commit be63bd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion html/Web.bundle/site/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>SubWallet</title><script inline inline-asset="fallback.js$" inline-asset-delete></script><script inline inline-asset="web-runner.js$" inline-asset-delete></script><script defer="defer" src="fallback-2cbe8504a1de420e3a98.js"></script><script defer="defer" src="web-runner-0fc9a0347199c892e86e.js"></script></head><body><div id="root">SubWallet</div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>SubWallet</title><script inline inline-asset="fallback.js$" inline-asset-delete></script><script inline inline-asset="web-runner.js$" inline-asset-delete></script><script defer="defer" src="fallback-2cbe8504a1de420e3a98.js"></script><script defer="defer" src="web-runner-82ff6a30707cb66d8b3d.js"></script></head><body><div id="root">SubWallet</div></body></html>

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/screens/ImportToken/ImportNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ImportNft = ({ route: { params: routeParams } }: ImportNftProps) => {
useHandlerHardwareBackPress(loading);
const theme = useSubWalletTheme().swThemes;
const toast = useToast();
const { isNetConnected, isReady } = useContext(WebRunnerContext);
const { isNetConnected, isReady, reload } = useContext(WebRunnerContext);
const onBack = useCallback(() => {
navigation.navigate('Home');
}, [navigation]);
Expand Down Expand Up @@ -166,6 +166,9 @@ const ImportNft = ({ route: { params: routeParams } }: ImportNftProps) => {
toast.hideAll();
toast.show(i18n.common.addNftSuccess, { type: 'success' });
onBack();
if (reload) {
reload();
}
} else {
toast.hideAll();
toast.show(i18n.errorMessage.occurredError, { type: 'danger' });
Expand Down

0 comments on commit be63bd6

Please sign in to comment.