diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index 568cdee..d74cb32 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -158,7 +158,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) { if (cb) cb(ABANDON_STATES.ERROR); dispatch( doToast({ - message: isClaim ? __('Error abandoning your claim/support') : __('Error unlocking your tip'), + message: isClaim ? 'Error abandoning your claim/support' : 'Error unlocking your tip', isError: true, }) ); @@ -210,7 +210,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) { } if (!method) { - console.error(__('No `method` chosen for claim or support abandon')); + console.error('No "method" chosen for claim or support abandon'); return; } @@ -231,7 +231,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) { const supportToAbandon = mySupports[outpoint]; if (!claimToAbandon && !supportToAbandon) { - console.error(__('No associated support or claim with txid: '), txid); + console.error('No associated support or claim with txid: ', txid); return; } @@ -255,7 +255,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) { const errorCallback = () => { dispatch( doToast({ - message: isClaim ? __('Error abandoning your claim/support') : __('Error unlocking your tip'), + message: isClaim ? 'Error abandoning your claim/support' : 'Error unlocking your tip', isError: true, }) ); @@ -301,7 +301,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) { } if (!method) { - console.error(__('No "method" chosen for claim or support abandon')); + console.error('No "method" chosen for claim or support abandon'); return; } diff --git a/src/redux/actions/file.js b/src/redux/actions/file.js index 313169a..b7dc699 100644 --- a/src/redux/actions/file.js +++ b/src/redux/actions/file.js @@ -37,7 +37,7 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get data: { outpoint }, }); - dispatch(doToast({ message: __(`File timeout for uri ${uri}`), isError: true })); + dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true })); } else { if (streamInfo.purchase_receipt || streamInfo.content_fee) { dispatch({ diff --git a/src/redux/actions/notifications.js b/src/redux/actions/notifications.js index a4c88d5..78d0ac9 100644 --- a/src/redux/actions/notifications.js +++ b/src/redux/actions/notifications.js @@ -4,7 +4,7 @@ import uuid from 'uuid/v4'; export function doToast(params: ToastParams) { if (!params) { - throw Error(__("'params' object is required to create a toast notification")); + throw Error("'params' object is required to create a toast notification"); } return { diff --git a/src/redux/reducers/publish.js b/src/redux/reducers/publish.js index 078f8d5..2104675 100644 --- a/src/redux/reducers/publish.js +++ b/src/redux/reducers/publish.js @@ -62,7 +62,7 @@ const defaultState: PublishState = { bid: 0.1, bidError: undefined, licenseType: 'None', - otherLicenseDescription: __('All rights reserved'), + otherLicenseDescription: 'All rights reserved', licenseUrl: '', tags: [], publishing: false,