Skip to content

Commit

Permalink
fix(demo): typos in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
k3nsei committed Aug 16, 2024
1 parent 942e9f6 commit b44810d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/demo/src/app/counter/counter.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const CounterStore = signalStore(

return new Promise((resolve, reject) => {
if (count >= 5) {
return reject(new RangeError('Count is to big'));
return reject(new RangeError('Count is too high'));
}

timer = setTimeout(() => resolve({ count: count + amount }), 250);
Expand Down Expand Up @@ -52,7 +52,7 @@ export const CounterStore = signalStore(

return new Promise((resolve, reject) => {
if (count <= 0) {
return reject(new RangeError('Count is to low'));
return reject(new RangeError('Count is too low'));
}

timer = setTimeout(() => resolve({ count: count - amount }), 250);
Expand Down

0 comments on commit b44810d

Please sign in to comment.