Skip to content

Commit d36dfdf

Browse files
committed
fix(explorer): remove payer check for rail settlements
1 parent 1c8d7e7 commit d36dfdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/explorer/src/components/UserConsole/SettleRailDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const SettleRailDialog: React.FC<SettleRailDialogProps> = ({
4343
isLoadingBlockNumber,
4444
} = useRailSettlementCalculations(rail, userAddress);
4545

46-
const canSettle = isPayer && !isSettling && !isLoadingBlockNumber && epochsSinceLastSettlement > 0n;
46+
const canSettle = !isSettling && !isLoadingBlockNumber && epochsSinceLastSettlement > 0n;
4747

4848
const handleSettle = async () => {
4949
if (isLoadingBlockNumber || currentEpoch === 0n) {
@@ -137,7 +137,7 @@ export const SettleRailDialog: React.FC<SettleRailDialogProps> = ({
137137
</div>
138138

139139
{/* Warning */}
140-
{isPayer && epochsSinceLastSettlement === 0n && (
140+
{epochsSinceLastSettlement === 0n && (
141141
<div className='flex gap-2 p-3 rounded-lg bg-orange-500/10 border border-orange-500/20'>
142142
<AlertCircle className='h-4 w-4 text-orange-600 dark:text-orange-400 flex-shrink-0 mt-0.5' />
143143
<p className='text-xs text-orange-600 dark:text-orange-400'>

0 commit comments

Comments
 (0)