Skip to content

Commit

Permalink
added encodeURI
Browse files Browse the repository at this point in the history
  • Loading branch information
paur94 committed Sep 5, 2024
1 parent dae7025 commit f3227fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function DataTable() {
const destinationToken = swap?.destination_token

return (
<tr key={index} onClick={() => router.push(`/${input_transaction?.transaction_hash}`)} className="cursor-pointer hover:bg-secondary-600">
<tr key={index} onClick={() => router.push(`/${encodeURIComponent(String(input_transaction?.transaction_hash))}`)} className="cursor-pointer hover:bg-secondary-600">
<td className="whitespace-nowrap py-2 px-3 text-sm font-medium text-white flex flex-col">
<div className="flex flex-row items-center text-btn-success bg-btn-success py-1 rounded">
{DestTxStatus(swap)}
Expand Down
2 changes: 1 addition & 1 deletion app/[searchParam]/SearchData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function SearchData({ searchParam }: { searchParam: string }) {
return

return (
<tr key={index} onClick={(e) => router.push(`/${inputTransaction?.transaction_hash}`)} className="hover:bg-secondary-600 hover:cursor-pointer">
<tr key={index} onClick={() => router.push(`/${encodeURIComponent(String(inputTransaction?.transaction_hash))}`)} className="hover:bg-secondary-600 hover:cursor-pointer">
<td className="whitespace-nowrap py-2 px-3 text-sm font-medium text-white flex flex-col">
<Link href={`/${inputTransaction?.transaction_hash}`} onClick={(e) => e.stopPropagation()} className="hover:text-gray-300 inline-flex items-center w-fit">
{shortenAddress(inputTransaction?.transaction_hash)}
Expand Down

0 comments on commit f3227fe

Please sign in to comment.