Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix: shorten timeout for lnurl processing notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 28, 2020
1 parent e14a522 commit 340d170
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions renderer/reducers/channels/ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const lnurlChannelSuccess = (event, { service }) => dispatch => {
{
variant: 'success',
message: intl.formatMessage(messages.channels_lnurl_channel_success, { service }),
timeout: 3000,
isProcessing: false,
}
)
Expand Down
4 changes: 3 additions & 1 deletion renderer/reducers/channels/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const finishLnurlChannel = () => async (dispatch, getState) => {
// Show notification.
dispatch(
showWarning(getIntl().formatMessage(messages.channels_lnurl_channel_started), {
timeout: 3000,
isProcessing: true,
payload: { service },
})
Expand Down Expand Up @@ -479,8 +480,9 @@ export const openChannel = data => async (dispatch, getState) => {
// Show notification.
dispatch(
showWarning(getIntl().formatMessage(messages.channels_open_warning), {
payload: { pubkey },
timeout: 3000,
isProcessing: true,
payload: { pubkey },
})
)

Expand Down
1 change: 1 addition & 0 deletions renderer/reducers/pay/ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const lnurlWithdrawSuccess = (event, { service }) => dispatch => {
{
variant: 'success',
message: intl.formatMessage(messages.pay_lnurl_withdraw_success, { service }),
timeout: 3000,
isProcessing: false,
}
)
Expand Down
1 change: 1 addition & 0 deletions renderer/reducers/pay/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const finishLnurlWithdraw = () => async (dispatch, getState) => {
// Show notification.
dispatch(
showWarning(getIntl().formatMessage(messages.pay_lnurl_withdraw_started), {
timeout: 3000,
isProcessing: true,
payload: { service },
})
Expand Down

0 comments on commit 340d170

Please sign in to comment.