Skip to content

Commit

Permalink
fix cannot read properties of undefined exception (fix #302)
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 23, 2024
1 parent 91ca041 commit ebb1cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faucet-client/src/components/frontpage/FrontPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class FrontPage extends React.PureComponent<IFrontPageProps, IFrontPageSt
let requiredScore = 0;
let ipflags: string[] = [];

if(sessionInfo.failedCode == "IPINFO_RESTRICTION" && this.props.faucetConfig.modules["passport"] && this.props.faucetConfig.modules["passport"].guestRefresh !== false && sessionInfo.failedData["ipflags"]) {
if(sessionInfo.failedCode == "IPINFO_RESTRICTION" && this.props.faucetConfig.modules["passport"] && this.props.faucetConfig.modules["passport"].guestRefresh !== false && sessionInfo.failedData && sessionInfo.failedData["ipflags"]) {
canStartWithScore = true;
if(sessionInfo.failedData["ipflags"][0] && this.props.faucetConfig.modules["passport"].overrideScores[0] > 0) {
canStartWithScore = true;
Expand Down

0 comments on commit ebb1cff

Please sign in to comment.