fix: hide reward code modal after success
This commit is contained in:
parent
445e8430f4
commit
1d8b129025
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,7 @@ import {
|
||||||
doDaemonReady,
|
doDaemonReady,
|
||||||
doAutoUpdate,
|
doAutoUpdate,
|
||||||
doOpenModal,
|
doOpenModal,
|
||||||
|
doHideModal,
|
||||||
} from 'redux/actions/app';
|
} from 'redux/actions/app';
|
||||||
import { doToast, doBlackListedOutpointsSubscribe, isURIValid } from 'lbry-redux';
|
import { doToast, doBlackListedOutpointsSubscribe, isURIValid } from 'lbry-redux';
|
||||||
import { doNavigate } from 'redux/actions/navigation';
|
import { doNavigate } from 'redux/actions/navigation';
|
||||||
|
@ -88,6 +89,10 @@ rewards.setCallback('rewardApprovalRequired', () => {
|
||||||
app.store.dispatch(doOpenModal(MODALS.REWARD_APPROVAL_REQUIRED));
|
app.store.dispatch(doOpenModal(MODALS.REWARD_APPROVAL_REQUIRED));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rewards.setCallback('claimRewardSuccess', () => {
|
||||||
|
app.store.dispatch(doHideModal(MODALS.REWARD_APPROVAL_REQUIRED));
|
||||||
|
});
|
||||||
|
|
||||||
ipcRenderer.on('open-uri-requested', (event, uri, newSession) => {
|
ipcRenderer.on('open-uri-requested', (event, uri, newSession) => {
|
||||||
if (uri && uri.startsWith('lbry://')) {
|
if (uri && uri.startsWith('lbry://')) {
|
||||||
if (uri.startsWith('lbry://?verify=')) {
|
if (uri.startsWith('lbry://?verify=')) {
|
||||||
|
|
Loading…
Reference in a new issue