Skip to content

Commit

Permalink
we have to check for ok
Browse files Browse the repository at this point in the history
  • Loading branch information
rootedbox committed Nov 15, 2022
1 parent 37c11e8 commit cba5864
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ class HomeComponent extends React.Component {
response: this.state.response,
})
.then((res) => {
let text = res.data;
console.log(res);
let text = res.statusText;

if (text === '') {
if (text === 'OK') {
toast.success(
<div>
<p>Tokens Sent!</p>
Expand Down

0 comments on commit cba5864

Please sign in to comment.