Skip to content

Commit

Permalink
fixed trial account generator for onboarding service changes (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswinder6991 authored Mar 1, 2024
1 parent c7ee720 commit e0beac5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/TrialAccountGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export const TrialAccountGenerator = ({ trigger }) => {
// //To-do
// // Do I really need to get the trial account path like this?
// // It does help me make localhost work for local testing. Need to change to trial URL in app.js to make it work though.
const path =
"/join?from=trial" + body.url.split("https://www.nearbuilders.org")[1];

//https://www.nearbuilders.org/join?from=trial/#trial-url/ACCOUNT_ID/SECRET_KEY
const path = body.url.split("https://www.nearbuilders.org")[1];

//This does not work right now because of keypom selector is implemented.
//window.location.href = `${window.location.origin}${path}`;
Expand All @@ -34,4 +35,4 @@ export const TrialAccountGenerator = ({ trigger }) => {

// Future TO-DO
//1. Log on-chain errors (500) on the console for better debugging.
//2. Log 429, too many requests.
//2. Log 429, too many requests.

0 comments on commit e0beac5

Please sign in to comment.