Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix checkout error typos #9536

Merged
merged 1 commit into from
Sep 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/assets/v2/js/grants/cart/binance_extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ const contributeWithBinanceExtension = async(grant, vm) => {

} else {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
console.error(`error: grant contribution failed with status: ${response.status} and message: ${response.message}`);
}
}).catch(function(error) {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
console.log(error);
});
}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/v2/js/grants/cart/harmony_extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ const contributeWithHarmonyExtension = async(grant, vm, modal) => {

} else {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
harmony_utils.logoutHarmonyExtension(harmonyExt);
console.error(`error: grant contribution failed with status: ${response.status} and message: ${response.message}`);
}
}).catch(function(error) {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
harmony_utils.logoutHarmonyExtension(harmonyExt);
console.log(error);
});
Expand Down
8 changes: 4 additions & 4 deletions app/assets/v2/js/grants/cart/polkadot_extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ const initPolkadotConnection = async(grant, vm) => {
});
}).catch(err => {
console.log(err);
_alert('Error connecting to polkadot network', 'danger');
_alert('Error connecting to Polkadot network', 'danger');
});

// step 3: allow user to select address on successful connection
async function initComplete(error, grant, vm) {

if (error) {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Please ensure you\'ve connected your polkadot extension to Gitcoin', 'danger');
_alert('Please ensure you\'ve connected your Polkadot extension to Gitcoin', 'danger');
console.log(error);
return;
}
Expand Down Expand Up @@ -153,12 +153,12 @@ const contributeWithPolkadotExtension = async(grant, vm, from_address) => {

} else {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
console.error(`error: grant contribution failed with status: ${response.status} and message: ${response.message}`);
}
}).catch(function(error) {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
console.log(error);
});
}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/v2/js/grants/cart/rsk_extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ const contributeWithRskExtension = async(grant, vm, modal) => {
vm.updatePaymentStatus(grant.grant_id, 'done', txn);
} else {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
console.error(`error: grant contribution failed with status: ${response.status} and message: ${response.message}`);
}
}).catch(function(error) {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Unable to make contribute to grant. Please try again later', 'danger');
_alert('Unable to contribute to grant. Please try again later', 'danger');
console.log(error);
});
}
Expand Down