Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/good-design/src/apps/bridge/MicroBridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ export const MicroBridge = ({
void nextStep();
}
if (isSuccess) {
setBridging(false);
setBridgeAmount("0");
onBridgeSuccess?.();
}

if (isFailed) {
setBridging(false);
const exception = new Error(errorMessage ?? "Failed to bridge");

if (errorCode) {
Expand All @@ -139,7 +142,7 @@ export const MicroBridge = ({

onBridgeFailed?.(exception);
}
}, [relayStatus, bridgeStatus, selfRelayStatus, onBridgeSuccess, onBridgeFailed]);
}, [relayStatus, bridgeStatus, selfRelayStatus, onBridgeSuccess, onBridgeFailed, setBridgeAmount]);

const reasonMinAmount =
reason === "minAmount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ const HistoryRowItem = ({ item, env }: { item: any; env: string }) => {
<Text variant="xs-grey">G$ {amount}</Text>
{feeFormatted ? (
<HStack>
<Text variant="xs-grey" fontWeight="700">
Fees:{" "}
</Text>
<Text variant="xs-grey">Fees: </Text>
<Text variant="xs-grey">{`G$ `}</Text>
<GdAmount variant="xs-grey" fontFamily="subheading" withDefaultSuffix={false} amount={feeFormatted} />
</HStack>
Expand Down