Skip to content

Commit 893a0b9

Browse files
chore(ramps): fix prettier formatting in useTransakRouting
CI's `format:check` flagged a few long lines added during the merge with main's headless flow. Prettier's --write reflowed the `RAMPS_TRANSACTION_CONFIRMED` event payload and the failure log message. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4ab8d1a commit 893a0b9

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

app/components/UI/Ramp/hooks/useTransakRouting.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ export const useTransakRouting = (config?: UseTransakRoutingConfig) => {
385385
amount_source: Number(rampsOrder.fiatAmount),
386386
amount_destination: Number(rampsOrder.cryptoAmount),
387387
exchange_rate: Number(rampsOrder.exchangeRate),
388-
gas_fee: rampsOrder.networkFees ? Number(rampsOrder.networkFees) : 0,
388+
gas_fee: rampsOrder.networkFees
389+
? Number(rampsOrder.networkFees)
390+
: 0,
389391
processing_fee: rampsOrder.partnerFees
390392
? Number(rampsOrder.partnerFees)
391393
: 0,
@@ -394,14 +396,16 @@ export const useTransakRouting = (config?: UseTransakRoutingConfig) => {
394396
country: regionIsoCode,
395397
chain_id: rampsOrder.network?.chainId || '',
396398
currency_destination: rampsOrder.cryptoCurrency?.assetId || '',
397-
currency_destination_symbol: rampsOrder.cryptoCurrency?.symbol || '',
399+
currency_destination_symbol:
400+
rampsOrder.cryptoCurrency?.symbol || '',
398401
currency_destination_network: rampsOrder.network?.name || '',
399402
currency_source: rampsOrder.fiatCurrency?.symbol || '',
400403
});
401404
} catch (error) {
402405
processingOrderIdRef.current = null;
403406
Logger.error(error as Error, {
404-
message: 'useTransakRouting: Failed to process order after checkout',
407+
message:
408+
'useTransakRouting: Failed to process order after checkout',
405409
});
406410
}
407411
return;

0 commit comments

Comments
 (0)