Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 1, 2023
1 parent 2995b0b commit 00e1b95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions faucet-client/src/components/status/FaucetStatusPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ export class FaucetStatusPage extends React.PureComponent<IFaucetStatusPageProps
);
}

if(session.factor && session.factor.length > 0) {
if(session.factors && session.factors.length > 0) {
let totalFactor = 1;
session.factor.forEach((f) => {
session.factors.forEach((f) => {
totalFactor *= f.factor;
});
sessionStatus.push(
Expand Down Expand Up @@ -426,15 +426,15 @@ export class FaucetStatusPage extends React.PureComponent<IFaucetStatusPageProps
}

private renderFactorInfo(session: IClientSessionStatus, props: any): React.ReactElement {
if(!session.factor)
if(!session.factors)
return null;

return (
<Tooltip id="ipinfo-tooltip" {...props}>
<div className='ipaddr-info'>
<table>
<tbody>
{session.factor.map((f) => {
{session.factors.map((f) => {
return (
<tr>
<td className='ipinfo-title'>x{Math.round(f.factor * 100) / 100}</td>
Expand Down
2 changes: 1 addition & 1 deletion faucet-client/src/types/FaucetStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface IClientSessionStatus {
boost: any;
connected: boolean;
idle: number;
factor: ISessionRewardFactor[];
factors: ISessionRewardFactor[];
}

export interface IClientClaimStatusRsp {
Expand Down
4 changes: 2 additions & 2 deletions static/js/powfaucet.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/powfaucet.js.map

Large diffs are not rendered by default.

0 comments on commit 00e1b95

Please sign in to comment.