Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
edgeSignedTransaction.metadata = edgeMetadata
edgeSignedTransaction.wallet = wallet
playSendSound().catch(error => console.log(error)) // Fail quietly
Alert.alert(s.strings.transaction_success, s.strings.transaction_success_message, [
{
onPress () {},
style: 'default',
text: s.strings.string_ok
}
])
if (guiMakeSpendInfo.onDone) {
guiMakeSpendInfo.onDone(null, edgeSignedTransaction)
} else {
Actions.replace(TRANSACTION_DETAILS, { edgeTransaction: edgeSignedTransaction })
}
} catch (e) {
console.log(e)
dispatch(updateSpendPending(false))
let message = sprintf(s.strings.transaction_failure_message, e.message)
if (e.name === 'ErrorEosInsufficientCpu') {
message = s.strings.send_confirmation_eos_error_cpu
} else if (e.name === 'ErrorEosInsufficientNet') {
message = s.strings.send_confirmation_eos_error_net
} else if (e.name === 'ErrorEosInsufficientRam') {
message = s.strings.send_confirmation_eos_error_ram
}
dispatch(updateTransaction(edgeSignedTransaction, null, true, new Error('broadcastError')))
Alert.alert(s.strings.transaction_failure, message, [
{
async componentDidMount() {
console.log('in cdm');
const value = await AsyncStorage.getItem('authToken');
if (!value) {
Actions.replace('loginScreen');
}
console.log('in');
this.props.fetchRestaurantByType(this.props.cuisineType, true);
}
onPress={() => {
Actions.replace('tab_2_1')
}}
>
<button> Actions.replace('Welcome')}>{langs.agreement_retry}</button>
toChat(dialog) {
if (Actions.currentScene !== 'chat') {
Actions.replace('chat', {
dialog: dialog,
title: dialog.name,
});
this.props.clearSelectedUser();
this.props.clearSearchUsersList();
}
}
Actions.replace('ProVersion', setup)}>
{langs.setup_next_button}
Actions.replace('Home')}>
Maybe later
Actions.replace('Agreement')}>
{langs.welcome_next_button}
async componentDidMount() {
const value = await AsyncStorage.getItem('authToken');
if (!value) {
Actions.replace('loginScreen');
}
if (this.props.rightTitle === 'Sign Out') {
this.props.fetchRestaurant();
this.props.fetchCuisineTypes();
this.props.fetchCartItems();
}
}
render() {
const {
loading, onSignupSubmit,
onEmailChange, onPasswordChange,
registerError, disableSignUp,
registerMessage,
} = this.props;
if (registerMessage && registerMessage.success) {
Actions.replace('loginScreen', {
loginError: {
message: 'Sign Up successful',
},
});
}
return (
Sign Up
<br size="{20}">
{registerError && {registerError.message}}
{registerMessage && {JSON.stringify(registerMessage)}}