Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# dependencies
/node_modules
node_modules
/.pnp
.pnp.*
.yarn/*
Expand Down
8 changes: 0 additions & 8 deletions frontend/src/components/stream-creation/AmountStep.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";
import React, { useRef, useEffect } from "react";
import { hasValidPrecision } from "@/lib/amount";

interface AmountStepProps {
value: string;
Expand All @@ -23,15 +22,8 @@ export const AmountStep: React.FC<AmountStepProps> = ({
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<HTMLInputElement>(null);

Expand Down
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading