We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7746b34 commit 92748d2Copy full SHA for 92748d2
1 file changed
tea-cup/src/TeaCup/Program.ts
@@ -70,7 +70,7 @@ export class Program<Model, Msg> extends Component<ProgramProps<Model, Msg>, nev
70
this.count++;
71
const count = this.count;
72
const currentModel = this.currentModel;
73
- if (currentModel) {
+ if (currentModel !== undefined) {
74
const updated = this.props.update(msg, currentModel);
75
if (this.props.devTools) {
76
this.fireEvent({
0 commit comments