Skip to content

Commit ae55dfe

Browse files
committed
Avoid unneeded "done" state
1 parent 1b94133 commit ae55dfe

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/TransformBondButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class TransformBondButton extends ReactiveComponent {
2525
this.setState({ bond })
2626
let that = this
2727
bond.map(result => that.setState({ result }))
28-
bond.then(result => that.setState({ bond: null, result }))
28+
bond.then(result => that.setState({ bond: null, result: that.props.immediate ? undefined : result }))
2929
}
3030
}
3131

src/app.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export class App extends ReactiveComponent {
9292
content='Create'
9393
transform={(name, seed) => secretStore().submit(seed, name)}
9494
args={[this.name, this.seed]}
95+
immediate
9596
/>}
9697
/>
9798
</div>
@@ -147,6 +148,7 @@ export class App extends ReactiveComponent {
147148
content='Add'
148149
transform={(name, account) => { addressBook().submit(account, name); return true }}
149150
args={[this.nick, this.lookup]}
151+
immediate
150152
/>}
151153
/>
152154
</div>

0 commit comments

Comments
 (0)