File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,8 @@ export const WPRainbowConnect = () => {
140
140
< React . Fragment >
141
141
< button
142
142
className = "button button-secondary button-hero"
143
- onClick = { state . address ? openAccountModal : signIn }
143
+ onClick = { state . address || state . loading ? openAccountModal : signIn }
144
144
type = "button"
145
- disabled = { state . loading }
146
145
style = { { width : "100%" } }
147
146
>
148
147
{ state . address
@@ -159,7 +158,12 @@ export const WPRainbowConnect = () => {
159
158
< React . Fragment >
160
159
< button
161
160
className = "button button-secondary button-hero"
162
- onClick = { openConnectModal }
161
+ onClick = { ( ) => {
162
+ // Make sure we don't have an active signing attempt.
163
+ setState ( { } ) ;
164
+ setTriggeredLogin ( false ) ;
165
+ openConnectModal ( ) ;
166
+ } }
163
167
style = { { width : "100%" } }
164
168
type = "button"
165
169
>
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
3
* Plugin Name: WP Rainbow
4
- * Version: 0.0.2
4
+ * Version: 0.0.3
5
5
*
6
6
* @package WP_Rainbow
7
7
*/
13
13
*
14
14
* @var string
15
15
*/
16
- define ( 'WP_RAINBOW_ASSETS_VERSION ' , '0.0.2 ' );
16
+ define ( 'WP_RAINBOW_ASSETS_VERSION ' , '0.0.3 ' );
17
17
18
18
// Include the autoloader.
19
19
add_action (
You can’t perform that action at this time.
0 commit comments