From d4d8c56579abe04cf02ad201e4b4234359abee74 Mon Sep 17 00:00:00 2001 From: Litezy Date: Fri, 29 May 2026 23:37:40 +0100 Subject: [PATCH 1/2] fix(frontend): remove dead precision validation branch in AmountStep --- frontend/.gitignore | 1 + frontend/src/components/stream-creation/AmountStep.tsx | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/.gitignore b/frontend/.gitignore index 5ef6a520..c25376d4 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -2,6 +2,7 @@ # dependencies /node_modules +node_modules /.pnp .pnp.* .yarn/* diff --git a/frontend/src/components/stream-creation/AmountStep.tsx b/frontend/src/components/stream-creation/AmountStep.tsx index 42057d76..b44bde9e 100644 --- a/frontend/src/components/stream-creation/AmountStep.tsx +++ b/frontend/src/components/stream-creation/AmountStep.tsx @@ -1,6 +1,5 @@ "use client"; import React, { useRef, useEffect } from "react"; -import { hasValidPrecision } from "@/lib/amount"; interface AmountStepProps { value: string; @@ -23,15 +22,8 @@ export const AmountStep: React.FC = ({ balanceError, onSetMax, }) => { - // Validate amount precision on change const handleAmountChange = (newValue: string) => { onChange(newValue); - - // Add precision validation if needed - if (newValue && !hasValidPrecision(newValue, 7)) { - // Parent component should handle this error - // This validation can be used to show inline error if needed - } }; const inputRef = useRef(null); From 1ffb7a4e63407cb4ddabecedf447c3abf6e15090 Mon Sep 17 00:00:00 2001 From: Litezy Date: Wed, 29 Apr 2026 19:07:43 +0100 Subject: [PATCH 2/2] fix --- package-lock.json | 9 --------- 1 file changed, 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3b228a7e..be3e0f7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7882,7 +7882,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -7944,7 +7943,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -7966,7 +7964,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -7988,7 +7985,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -8010,7 +8006,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -8052,7 +8047,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -8074,7 +8068,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -8096,7 +8089,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -8118,7 +8110,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">= 12.0.0" },