2022-03-24 07:33:20 +01:00
|
|
|
// @flow
|
|
|
|
import { doToast } from 'redux/actions/notifications';
|
|
|
|
|
|
|
|
export function doFailedSignatureToast(dispatch: Dispatch, channelName: string) {
|
|
|
|
dispatch(
|
|
|
|
doToast({
|
2022-04-28 15:25:14 +02:00
|
|
|
message: __('Unable to verify signature.'),
|
|
|
|
subMessage: channelName,
|
2022-03-24 07:33:20 +01:00
|
|
|
isError: true,
|
|
|
|
})
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function devToast(dispatch: Dispatch, msg: string) {
|
|
|
|
// @if process.env.NODE_ENV!='production'
|
|
|
|
console.error(msg); // eslint-disable-line
|
|
|
|
dispatch(doToast({ isError: true, message: `DEV: ${msg}` }));
|
|
|
|
// @endif
|
|
|
|
}
|