Skip to content

Commit 92748d2

Browse files
committed
fix to support models of types that can be falsy
1 parent 7746b34 commit 92748d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tea-cup/src/TeaCup/Program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Program<Model, Msg> extends Component<ProgramProps<Model, Msg>, nev
7070
this.count++;
7171
const count = this.count;
7272
const currentModel = this.currentModel;
73-
if (currentModel) {
73+
if (currentModel !== undefined) {
7474
const updated = this.props.update(msg, currentModel);
7575
if (this.props.devTools) {
7676
this.fireEvent({

0 commit comments

Comments
 (0)