Skip to content

Commit

Permalink
fix typo in code (#26655)
Browse files Browse the repository at this point in the history
Summary:
This PR only fixes a typo in `ShadowNode.cpp`

## Changelog

[Internal] [Fixed] - Fix typo in `ShadowNode.cpp`
Pull Request resolved: #26655

Differential Revision: D17743059

Pulled By: TheSavior

fbshipit-source-id: 6bbaf54b712c0a80da8dfafea2634309279a8f21
  • Loading branch information
ma96o authored and facebook-github-bot committed Oct 4, 2019
1 parent 7d8b7ff commit ae3f7a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReactCommon/fabric/core/shadownode/ShadowNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ const State::Shared &ShadowNode::getState() const {

State::Shared ShadowNode::getMostRecentState() const {
if (state_) {
auto commitedState = state_->getMostRecentState();
auto committedState = state_->getMostRecentState();

// Commited state can be `null` in case if no one node was commited yet;
// Committed state can be `null` in case if no one node was committed yet;
// in this case we return own `state`.
return commitedState ? commitedState : state_;
return committedState ? committedState : state_;
}

return ShadowNodeFragment::statePlaceholder();
Expand Down

0 comments on commit ae3f7a7

Please sign in to comment.